import request from '@/utils/request'

// 查询报考军人服役地信息列表
export function listMilitaryService(query) {
  return request({
    url: '/chengkao/militaryService/list',
    method: 'get',
    params: query
  })
}

// 查询报考军人服役地信息详细
export function getMilitaryService(id) {
  return request({
    url: '/chengkao/militaryService/' + id,
    method: 'get'
  })
}

// 新增报考军人服役地信息
export function addMilitaryService(data) {
  return request({
    url: '/chengkao/militaryService',
    method: 'post',
    data: data
  })
}

// 修改报考军人服役地信息
export function updateMilitaryService(data) {
  return request({
    url: '/chengkao/militaryService',
    method: 'put',
    data: data
  })
}

// 删除报考军人服役地信息
export function delMilitaryService(id) {
  return request({
    url: '/chengkao/militaryService/' + id,
    method: 'delete'
  })
}
